package com.woniuxy.test;

/**
 * @Author author
 * @Create 2023-09-11 10:01
 */
class FatherClass{

    private int test;

    public int getTest() {
        return test;
    }

    public void setTest(int test) {
        this.test = test;
    }

    protected Object test(Object str)  throws Exception {
        return null;
    }
}

class SonClass extends FatherClass{

    private int age;

    @Override
    public String test(Object str) throws Exception {
        return null;
    }
}


public class App03 {
    public static void main(String[] args) {
        SonClass sonClass = new SonClass();
        sonClass.setTest(1);
        System.out.println(sonClass.getTest());
    }
}
